﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("消退单")]
    [Table("t_regressionVoucher")]
    [Index(nameof(VoucherCode))]
    public class RegressionVoucher : VoucherBase
    {
        public RegressionVoucher(Guid keyId)

        {
            this.Id = keyId;
        }
        [Comment("科室ID")]
        public Guid? DeptID { get; set; }

        [Comment("科室名称")]
        [MaxLength(50)]
        public string DeptName { get; set; }

        [Comment("产品管理方式 0数量管理 1定数管理")]
        public int ProductManageType { get; set; }

        [Comment("仓库级别")]
        public int WarehouseLevel { get; set; }

        #region 试剂

        [Comment("试剂上机设备")]
        [MaxLength(50)]
        public string Equipment { get; set; }
        #endregion

        [Comment("记账状态(0:未记账 1:已记账)")]
        public int AccountingStatus { get; set; }

        [Comment("单据类型")]
        public int? VoucherClass { get; set; }

        [Comment("计费人")]
        [MaxLength(60)]
        public string OperationNur { get; set; }

        [Comment("退费时间")]
        public DateTime? HisRetTime { get; set; }
        public RegressionVoucher()
        {

        }

    
    }
}
